package com.kmxd.ams.client.use.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 利用单操作日志表
 *
 * @author nickbi
 * @since 2022-09-13
 */
@Data
@Schema(description = "利用单操作日志表对象")
public class UseLogVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "申请单id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long orderId;

  @Schema(description = "档案id信息")
  private String archDataIds;

  @Schema(description = "业务行为")
  private String behavior;

  @Schema(description = "业务内容")
  private String content;

  @Schema(description = "类型:1领取登记,2归还登记")
  private Integer type;

  private String typeName;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "操作人名称")
  private String createUserName;

  @Schema(description = "备注")
  private String remarks;

  @Schema(description = "用户名")
  private String userName;

  @Schema(description = "操作时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date opTime;
}
